package com.lh.java.basic.rmi;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class AddServerImpl extends UnicastRemoteObject implements AddServer {
	public AddServerImpl() throws RemoteException {
		super();
	}

	public int AddNumbers(int firstnumber, int secondnumber)
			throws RemoteException {
		return firstnumber + secondnumber;
	}
	
	public void sayHello() throws RemoteException {
		System.out.println("i am say hello");
		
	}
}
